package com.ruoyi.residents.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.pojo.TbRoom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TbRoomMapper extends BaseMapper<TbRoom> {

    @Select("select * from tb_room where id = #{roomid}")
    TbRoom fingById(Integer roomId);

    @Select("select * from tb_room")
    List<TbRoom> findAll();
}
